<template>
	<view class="lofinCome" v-if="!istoken">
		<view class="lofinComeComet">
			<view class="title">
				<text>请登录</text>
				<view @click="istoken=!istoken">
					x
				</view>
			</view>
			<view class="meaLnes">
				登录后可查看就业数据
			</view>
			<view class="ant-comner">
				<view class="ant" @click="istoken=!istoken">取消</view>
				<view class="ant em" @click="goPages('/logon/logon/index')">登录</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default{
		data(){
			return {
				tokenC:uni.getStorageSync('token'),
				istoken:uni.getStorageSync('token')?true:false,
			}
		},
		methods:{
			goPages(path){
				uni.navigateTo({
					url:path
				})
			},
		},
		// onShow() {
		// 	alert(this.tokenC)
		// 	this.istoken=this.tokenC;
			
		// }
	}
</script>

<style>
	.lofinCome{
		width: 100vw;
		background-color: rgba(0, 0, 0, .7);
		position: fixed;
		left: 0;
		top: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 999;
		height: 100vh;
	}
	.lofinComeComet{
		padding: 24rpx;
		width: 600rpx;
		border-radius: 20rpx;
		background-color: #292a2d;
		border: 1px solid #545457;
	}
	.lofinComeComet .title{
		font-size: 28rpx;
		display: flex;
		color: #fff;
		justify-content: space-between;
	}
	.meaLnes{
		display: flex;
		align-items: center;
		line-height: 200rpx;
		color: #fff;
		justify-content: center;
	}
	.ant-comner{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 80rpx;
		padding-bottom: 100rpx;
	}
	.ant-comner .ant{
		width: 200rpx;
		height: 65rpx;
		border-radius: 10rpx;
		text-align: center;
		background-color: #fff;
		color: #58be6a;
		line-height: 65rpx;
	}
	.ant-comner .ant.em{
		color: #fff;
		background-color: #58be6a;
	}
</style>